//
//  AddressPickView.h
//  Learn
//
//  Created by zyl_macbookpro on 2024/4/12.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^AddressBlock)(NSString *address);
@interface AddressPickView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>

@property(nonatomic ,copy)AddressBlock block;

@property(nonatomic ,strong)UIView *alertView;

@property(nonatomic ,strong)UIPickerView *picker;

@property(nonatomic ,strong)NSDictionary *data;

@property(nonatomic ,strong)NSArray *cityData;

@property(nonatomic ,strong)NSArray *areaData;

@property(nonatomic ,strong)NSArray *provinceData;

@property(nonatomic ,strong)NSArray *cityDataShow;

@property(nonatomic ,strong)NSArray *areaDataShow;

@property(nonatomic ,assign)NSInteger provinceSelectedRow;

@property(nonatomic ,assign)NSInteger cityDataSelectedRow;

@property(nonatomic ,assign)NSInteger areaDataSelectedRow;

- (void)showView;
@end

NS_ASSUME_NONNULL_END
